package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.order.OrderStatistics;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderInfoMapper {
    List<Map<String, Object>> selectOrderStatistics(@Param("begin") String begin,
                                                    @Param("end") String end);

    //插入 订单统计数据到订单统计表中
    void saveOrderStatistics(OrderStatistics orderStatistics);

    OrderStatistics selectOrderStatisticsByDate(String date);

    List<Map<String, Object>> selectOrderStatisticList(@Param("begin") String begin,
                                                       @Param("end") String end);
}
